<?php #20070415
define('BLOCKADMIN','1.00');

/************************************************************************/
/* FrameWork  test preview                                              */
/* ==================================================================== */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/


//admin block
//carica la lingua se esiste
$lang=lang();
switch($lang){
    case "en":
	define("_AMMINISTRA","Admin Console");
	define("_ADMIN","Admin Block");
	break;
    default;
	define("_AMMINISTRA","Pannello Admin");
	define("_ADMIN","Blocco Admin");
	break;
}

?>

<style type="text/css">

div.table.block.admin form
{
	margin: 0;
	text-align: center;
}

div.table.block.admin input
{
	margin: 2px;
}

</style>


 <?php structure_openBlock("table block admin",_ADMIN,""); ?>

    <p>

<p align='left'> <img src='<?=$path;?>/<?=$block;?>/images/Security_Reader2.png' width='70' height='70' border="0">

    <?php if (!admin_isadmin()) { ?>
	<p align="center" >
	    <form action="index.php?admin_op=startsession" method="post" enctype="multipart/form-data">
		<input name='password' type="password" value="" />
		<hr />
		<input type="submit" value="Start Session">
	    </form>
	</p>
    <?php }else{ ?>
	<p align="center" >
	    <a href="index.php?appname=_admin"><?=_AMMINISTRA?></a><br />
	    <form action="index.php?admin_op=stopsession"  method="post" enctype="multipart/form-data">
		<input type="submit" value="Stop Session">
	    </form>
	</p>
    <?php }?>
    </p>
<?php structure_closeBlock(); ?>

